-
Notifications
You must be signed in to change notification settings - Fork 13.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove extras from all adhoc_filters controls #21450
fix: remove extras from all adhoc_filters controls #21450
Conversation
Codecov Report
@@ Coverage Diff @@
## master #21450 +/- ##
=======================================
Coverage 66.53% 66.54%
=======================================
Files 1791 1791
Lines 68599 68602 +3
Branches 7320 7320
=======================================
+ Hits 45645 45648 +3
Misses 21064 21064
Partials 1890 1890
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
ffdad8c
to
978519f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested in my local then it works well! Thanks for the fixing!
Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com> (cherry picked from commit e1e9fda)
SUMMARY
When setting native or filter box filters in a dashboard and then exploring a Mixed Timeseries chart and then saving the chart, the extra filters are only removed from the first query. This PR changes the removal logic so that all controls that start with the text
adhoc_filters
are cleaned from extra filters before saving. The logic is added both to the deprecated backend logic (set for removal in 3.0) and the new frontend logic which cleans the extra adhoc filters before sending the request to the v1 chart API.AFTER
With this fix the extra filters are removed from the second query of the mixed chart (notice there are no extra filters in the adhoc filter control):
BEFORE
Previously saving the mixed chart with an extra filter would persist the extra filters in the chart metadata:
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION